const files = require.context('./', false, /\.vue$/)
let modules = []
files.keys().forEach((key) => {
    let module = files(key)
    if (module.default) {
        let name = module.default.name;
        let component = module.default;
        let includesComponent = module.default.includesComponent
        if (name && component && includesComponent) {
            modules.push({
                name: module.default.name,
                component: module.default,
                includesComponent: module.default.includesComponent
            })
        }
    }
})
export {
    modules
}